/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bttk.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商户管理Entity
 * @author soyatec
 * @version 2016-11-02
 */
public class TUserCrowdProject extends DataEntity<TUserCrowdProject> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 商户编号 父类
	private String projectName;		// 商户众筹项目名称
	private String totalPrice;		// 众筹总价
	private String launchPrice;		// 众筹发起价格
	private String helpPrice;		// 帮筹价格
	private String helpAmount;		// 帮筹数量
	private Date startDate;		// 商户众筹项目开始日期
	private Date endDate;		// 商户众筹项目结束日期
	private String crowdDays;		// 客户众筹的有效期限（天）
	private String totalLaunchAmount;		// 累计发起众筹活动次数
	private String totalHelpAmount;		// 累计帮筹次数
	private String image1;		// 众筹项目描述图片1
	private String image2;		// 众筹项目描述图片2
	private String image3;		// 众筹项目描述图片3
	private String image4;		// 众筹项目描述图片4
	private String image5;		// 众筹项目描述图片5
	private String image6;		// 众筹项目描述图片6
	private String description;		// 众筹活动文字说明
	private String projectUrl;		// 众筹项目网页分享地址
	
	public TUserCrowdProject() {
		super();
	}

	public TUserCrowdProject(String id){
		super(id);
	}

	public TUserCrowdProject(User user){
		this.user = user;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=255, message="商户众筹项目名称长度必须介于 0 和 255 之间")
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	
	public String getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}
	
	public String getLaunchPrice() {
		return launchPrice;
	}

	public void setLaunchPrice(String launchPrice) {
		this.launchPrice = launchPrice;
	}
	
	public String getHelpPrice() {
		return helpPrice;
	}

	public void setHelpPrice(String helpPrice) {
		this.helpPrice = helpPrice;
	}
	
	@Length(min=0, max=11, message="帮筹数量长度必须介于 0 和 11 之间")
	public String getHelpAmount() {
		return helpAmount;
	}

	public void setHelpAmount(String helpAmount) {
		this.helpAmount = helpAmount;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Length(min=0, max=11, message="客户众筹的有效期限（天）长度必须介于 0 和 11 之间")
	public String getCrowdDays() {
		return crowdDays;
	}

	public void setCrowdDays(String crowdDays) {
		this.crowdDays = crowdDays;
	}
	
	@Length(min=0, max=11, message="累计发起众筹活动次数长度必须介于 0 和 11 之间")
	public String getTotalLaunchAmount() {
		return totalLaunchAmount;
	}

	public void setTotalLaunchAmount(String totalLaunchAmount) {
		this.totalLaunchAmount = totalLaunchAmount;
	}
	
	@Length(min=0, max=11, message="累计帮筹次数长度必须介于 0 和 11 之间")
	public String getTotalHelpAmount() {
		return totalHelpAmount;
	}

	public void setTotalHelpAmount(String totalHelpAmount) {
		this.totalHelpAmount = totalHelpAmount;
	}
	
	@Length(min=0, max=1023, message="众筹项目描述图片1长度必须介于 0 和 1023 之间")
	public String getImage1() {
		return image1;
	}

	public void setImage1(String image1) {
		this.image1 = image1;
	}
	
	@Length(min=0, max=1023, message="众筹项目描述图片2长度必须介于 0 和 1023 之间")
	public String getImage2() {
		return image2;
	}

	public void setImage2(String image2) {
		this.image2 = image2;
	}
	
	@Length(min=0, max=1023, message="众筹项目描述图片3长度必须介于 0 和 1023 之间")
	public String getImage3() {
		return image3;
	}

	public void setImage3(String image3) {
		this.image3 = image3;
	}
	
	@Length(min=0, max=1023, message="众筹项目描述图片4长度必须介于 0 和 1023 之间")
	public String getImage4() {
		return image4;
	}

	public void setImage4(String image4) {
		this.image4 = image4;
	}
	
	@Length(min=0, max=1023, message="众筹项目描述图片5长度必须介于 0 和 1023 之间")
	public String getImage5() {
		return image5;
	}

	public void setImage5(String image5) {
		this.image5 = image5;
	}
	
	@Length(min=0, max=1023, message="众筹项目描述图片6长度必须介于 0 和 1023 之间")
	public String getImage6() {
		return image6;
	}

	public void setImage6(String image6) {
		this.image6 = image6;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Length(min=0, max=2047, message="众筹项目网页分享地址长度必须介于 0 和 2047 之间")
	public String getProjectUrl() {
		return projectUrl;
	}

	public void setProjectUrl(String projectUrl) {
		this.projectUrl = projectUrl;
	}
	
}